package com.ddstation.exchange.service.impl;

import com.ddstation.common.mapper.DtInvsItemInstitutionMapper;
import com.ddstation.common.model.InvsItemInstitutionModel;
import com.ddstation.common.util.AliCloudOssUtil;
import com.ddstation.crud.entity.*;
import com.ddstation.crud.mapper.*;
import com.ddstation.doctor.entity.DdDoctorEntity;
import com.ddstation.doctor.mapper.DdDoctorMapper;
import com.ddstation.exam.entity.DtHealthManageInstitutionGroupEntity;
import com.ddstation.exam.entity.DtInvsExam;
import com.ddstation.exam.entity.DtInvsExamReportResultEntity;
import com.ddstation.exam.mapper.DtHealthManageInstitutionGroupMapper;
import com.ddstation.exam.mapper.DtInvsExamMapper;
import com.ddstation.exam.mapper.DtInvsExamReportResultMapper;
import com.ddstation.exchange.entity.AllTypesTableEntity;
import com.ddstation.exchange.entity.DtInvsDistrictLongitudeLatitudeEntity;
import com.ddstation.exchange.entity.DtInvsMessageQueueUaEntity;
import com.ddstation.exchange.mapper.AllTypesTableMapper;
import com.ddstation.exchange.mapper.DtInvsDistrictLongitudeLatitudeMapper;
import com.ddstation.exchange.mapper.DtInvsMessageQueueUaMapper;
import com.ddstation.exchange.service.AllTypesTableService;
import com.ddstation.exchange.service.out.DataFromInvsWebService;
import com.ddstation.home_page.entity.DtInvsMessageQueueEntity;
import com.ddstation.home_page.mapper.DtInvsMessageQueueMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.inject.Inject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class AllTypesTableServiceImpl implements AllTypesTableService {

    private static final Logger LOGGER = LoggerFactory.getLogger(AllTypesTableServiceImpl.class);
    @Inject
    private AllTypesTableMapper allTypesTableMapper;
    @Inject
    private DtHealthManageInstitutionGroupMapper dtHealthManageInstitutionGroupMapper;




    @Override
    public List<Map<String, Object>> selectAllByTable(String tableName) {
        List<DtHealthManageInstitutionGroupEntity> dtHealthManageInstitutionGroupEntities = dtHealthManageInstitutionGroupMapper.selectAll();


        AllTypesTableEntity entity = new AllTypesTableEntity();
        entity.setTableName(tableName);
        return allTypesTableMapper.selectAllByTable(entity);
    }
}
